package utils;

import user.Save;

public class AddressBookService implements IAddressBookService{
    IAddressBookDAO addressBookDAO;
    public AddressBookService(){
        addressBookDAO=new AddressBookDAO();
    }
    @Override
    public int insert(Save save){
        int i=addressBookDAO.insert(save);
        return  i;
    }

    @Override
    public Save findgoods(String name){
        return addressBookDAO.findgoods(name);
    }

    @Override
    public int deletegoods(String name) {
        return addressBookDAO.deletegoods(name);
    }
    @Override
    public int updategoods(Save save) {
        return addressBookDAO.updategoods(save);
    }

}
